<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterCouponOrderAddSid extends Migrator
{
    public function up()
    {

        $this->table('coupon_order')
            ->addColumn('sid', 'string', ['limit' => 30, 'default' => '', 'comment' => '自定义标记信息'])
            ->update();


    }

    public function down()
    {
        $this->table('coupon_order')->removeColumn('sid');
    }
}
